package cn.dhnep.demo.pojo.frontvo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@Accessors(chain = true)
@ApiModel(value="产品主分类", description="")
public class MainClassify implements Serializable {

    @ApiModelProperty(value = "修改者名字")
    private String adminName;

    @ApiModelProperty(value = "图标")
    private String file;

    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "主分类id")
    private Integer fid;

    @ApiModelProperty(value = "编号")
    @NotBlank(message = "编号不能为空，请添加编号")
    private String number;

    @ApiModelProperty(value = "名称")
    @NotBlank(message = "名称不能为空,请填写名称")
    private String name;

    @ApiModelProperty(value = "最低参考价格(元)")
    @DecimalMin(message = "最低参考价格必须大于等于0，请填写最低参考价格",value = "0")
    private Double minimum;

    @ApiModelProperty(value = "最高参考价格(元)")
    @DecimalMin(message = "最高参考价格必须大于等于0，请填写最高参考价格",value = "0")
    private Double highest;

    @ApiModelProperty(value = "结算价格(元)")
    @DecimalMin(message = "结算价格必须大于等于0，请填写结算价格",value = "0")
    private Double settlementPrice;

    @ApiModelProperty(value = "计量单位")
    @NotBlank(message = "商品计量单位不能为空，请选择计量单位")
    private String measure;

    @ApiModelProperty(value = "一级分销")
    @NotBlank(message = "一级分销不能为空，请填写一级分销")
    private String previousProfit;

    @ApiModelProperty(value = "二级分销")
    @NotBlank(message = "二级分销不能为空，请填写二级分销")
    private String previousTwoProfit;
}
